package com.example.blog.service;

import com.example.blog.dto.ArticleDTO;
import com.example.blog.pojo.Article;
import com.example.blog.pojo.PageBean;

import java.util.List;


public interface ArticleService {
    PageBean<ArticleDTO> getArticleList(Integer pageNum, Integer pageSize, Integer categoryId, Integer status);

    Article getArticle(Integer articleid);

    boolean addArticle(Article article);

    boolean updateArticle(Integer userid,Integer id, String title, String content,Integer category,String abstracts);

    boolean likeArticle(Integer articleid);

    Integer getArticleUserid(Integer articleid);

    List<ArticleDTO> getUserArticle(Integer userid,Integer status);

    boolean deleteArticle(Integer id,Integer userid);

}
